package com.knowledge.vo;

import lombok.Data;

import java.util.List;

/**
 * @author zzz
 * @create 2022-02-10 16:38
 */

@Data
public class ArticleVo {
    //@JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    private String title;

    private String summary;

    private Integer commentCounts;

    private Integer viewCounts;

    private Integer weight;
    /**
     * 创建时间
     */
    private String createDate;

    /**
     * 作者id
     */
    private Long authorId;

    /**
     * 作者昵称
     */
    private String author;

    /**
     * 头像
     */
    private String avatar;

    private ArticleBodyVo body;

    private List<TagVo> tags;

    private CategoryVo category;

    private Integer canDelete = 0;

    private Integer admin = 0;

    private Integer favorite = 0;

}

